<?php

function add_comment($text,$user,$title);
  {
   $m_id=get_member_id($user);
   $g_id=get_game_id($title);
   
   if($text!="")
    {
	 $result=insert_into_comment($g_id,$m_id,$text);
	 if($result)
      {
	    //edo argotera tha kanei echo tin selida pou tha vlepei o xristis meta to comment. 
	    echo "Successful"; 
	  }
     else 
      {
	    echo "ERROR";
	  }
	}
   else
    {
     echo "You have to write something!";
	}
  }
  
?>